/**
 * Created by zhaoxk on 2016/11/03
 */
const typeCategories = {
    id: 'c01',
    name: '分类名称',
    code: 'flmc',
    sort: 0,
    status: 0,
    items: ['typeId', 'typeId'/*, 'typeId', ...*/]
};
const types = {
    id: 't01',
    name: '段落名称',
    parentId: 'c01',
    code: 'dlmc',
    sort: 0,
    status: 0,
    items: ['elemId', 'elemId'/*, 'elemId', ...*/]
};
/**
 * 表单元素
 * @type {{
 *  id: string,
 *  form: string,
 *  name: string,
 *  placeholder: string,
 *  tips: string,
 *  rules: *[
 *
 *  ],
 *  code: string,
 *  sort: number,
 *  status: number
 *  }}
 */
const elems = {
    id: 'e01',
    form: 'input',
    name: '表单标题',
    placeholder: '请选择发生时间',
    tips: '/dict/:type/:id',
    rules: [
        {
            require: true,
            message: '必填项'
        },
        {
            type: 'text',
            message: '请输入正确类型的值'
        },
        {
            max: 10,
            message: '不能超过10位'
        },
        {
            min: 10,
            message: '至少10位'
        }
    ],
    code: 'ysmc',
    sort: 0,
    status: 0
};
const tips = [
    {
        value: 'value',
        label: 'label'
    }
];
const template = {
    types: ['typeId', 'typeId'/*, 'typeId', ...*/],
    initialValue: [
        {
            typeId: 't01',
            value: [
                {
                    e01: '白内障术后1个月',
                    e02: '2016-09-06',
                    e03: ''
                },
                {
                    e01: '白内障术后1个月',
                    e02: '2016-09-06',
                    e03: ''
                }
            ]
        },
        {
            typeId: 't02',
            value: [
                {
                    e01: '白内障术后1个月',
                    e03: '2016-09-06',
                    e06: ''
                }
            ]
        }
    ]
};
export {typeCategories, types, elems, tips, template};
